﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001371 RID: 4977
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakePrestigeRewardCsReq : IMessage<TakePrestigeRewardCsReq>, IMessage, IEquatable<TakePrestigeRewardCsReq>, IDeepCloneable<TakePrestigeRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003EC1 RID: 16065
		// (get) Token: 0x0600DED1 RID: 57041 RVA: 0x00254118 File Offset: 0x00252318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakePrestigeRewardCsReq> Parser
		{
			get
			{
				return TakePrestigeRewardCsReq._parser;
			}
		}

		// Token: 0x17003EC2 RID: 16066
		// (get) Token: 0x0600DED2 RID: 57042 RVA: 0x0025411F File Offset: 0x0025231F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakePrestigeRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003EC3 RID: 16067
		// (get) Token: 0x0600DED3 RID: 57043 RVA: 0x00254131 File Offset: 0x00252331
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakePrestigeRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600DED4 RID: 57044 RVA: 0x00254138 File Offset: 0x00252338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePrestigeRewardCsReq()
		{
		}

		// Token: 0x0600DED5 RID: 57045 RVA: 0x00254140 File Offset: 0x00252340
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePrestigeRewardCsReq(TakePrestigeRewardCsReq other) : this()
		{
			this.level_ = other.level_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DED6 RID: 57046 RVA: 0x00254165 File Offset: 0x00252365
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakePrestigeRewardCsReq Clone()
		{
			return new TakePrestigeRewardCsReq(this);
		}

		// Token: 0x17003EC4 RID: 16068
		// (get) Token: 0x0600DED7 RID: 57047 RVA: 0x0025416D File Offset: 0x0025236D
		// (set) Token: 0x0600DED8 RID: 57048 RVA: 0x00254175 File Offset: 0x00252375
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x0600DED9 RID: 57049 RVA: 0x0025417E File Offset: 0x0025237E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakePrestigeRewardCsReq);
		}

		// Token: 0x0600DEDA RID: 57050 RVA: 0x0025418C File Offset: 0x0025238C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakePrestigeRewardCsReq other)
		{
			return other != null && (other == this || (this.Level == other.Level && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DEDB RID: 57051 RVA: 0x002541BC File Offset: 0x002523BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DEDC RID: 57052 RVA: 0x002541FB File Offset: 0x002523FB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DEDD RID: 57053 RVA: 0x00254203 File Offset: 0x00252403
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DEDE RID: 57054 RVA: 0x0025420C File Offset: 0x0025240C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Level != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DEDF RID: 57055 RVA: 0x00254240 File Offset: 0x00252440
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DEE0 RID: 57056 RVA: 0x0025427E File Offset: 0x0025247E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakePrestigeRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DEE1 RID: 57057 RVA: 0x002542AF File Offset: 0x002524AF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DEE2 RID: 57058 RVA: 0x002542B8 File Offset: 0x002524B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.Level = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005851 RID: 22609
		private static readonly MessageParser<TakePrestigeRewardCsReq> _parser = new MessageParser<TakePrestigeRewardCsReq>(() => new TakePrestigeRewardCsReq());

		// Token: 0x04005852 RID: 22610
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005853 RID: 22611
		public const int LevelFieldNumber = 10;

		// Token: 0x04005854 RID: 22612
		private uint level_;
	}
}
